package com.ruoyi.business.mapper;

import com.ruoyi.business.domain.BusRent;
import com.ruoyi.common.core.domain.model.LoginUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 内容:
 * 作者: cy
 */


@Mapper
public interface BusRentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BusRent record);

    int insertSelective(BusRent record);

    BusRent selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BusRent record);

    int updateByPrimaryKey(BusRent record);

    BusRent selectRentByIdentityAndRentStatus(@Param("identity") String identity, @Param("carNoBack") Integer carNoBack);

    List<BusRent> selectRentPage(@Param("busRent") BusRent busRent, @Param("loginUser") LoginUser loginUser);
    /**
     * 根据出租单号 查询出租单信息
     *
     * @param rentSn
     * @return
     */
    BusRent selectRentByRentSn(String rentSn);
}